import { getCatelist } from "../../../request/api"
const state = {
    cateList: []
}
const getters = {
    getCate(state){
        return state.cateList
    }
}
const mutations = {
    REQ_GETCATE(state,payloda){
        state.cateList = payloda
    }
}
const actions = {
    getCateAction({commit}){
        getCatelist().then((res)=>{
            commit('REQ_GETCATE',res.list)
        })
    }
}
export default {
    state, getters, mutations, actions,
    namespaced: true
}